All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----sjl.Bind1stFunction
Bind1stFunction
class can wrap a
Function2
class so that it appears as a Function1
.
Algo.transform(list.begin(), list.end(), list.begin() new Bind1stFunction(new FuncSumInteger(), new Integer(5)));The above example will add 5 to each integer in list.
Copyright © 1996 Finn Bock
public Bind1stFunction(Function2 func, Object val)
public Object perform(Object o)
All Packages Class Hierarchy This Package Previous Next Index